import React from 'react';
import { Button } from 'antd';
import useLoadData from '../hooks/useLoadData';

const LoginPage = () => {
    const { data, loading } = useLoadData();
    return (
        <div>
            {!loading && <p>{JSON.stringify(data)}</p>}
            {loading && <Button loading={loading}>加载数据</Button>}
        </div>
    );
};

export default LoginPage;
